-- Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
--
-- this file licensed under the Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
--
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
-- PURPOSE.
-- See the Mulan PSL v2 for more details.
--
-- Author: auto generate
-- Create: 2025-10-19
-- Description: DO NOT EDIT; Code generated by "service.lua.mako"
local mdb = require 'mc.mdb'
local class = require 'mc.class'
local object_manage = require 'mc.mdb.object_manage'

local CANTypes = require 'debug.json_types.CAN'
local RemoteAccessTypes = require 'debug.json_types.RemoteAccess'
local PropertiesTypes = require 'debug.json_types.Properties'

local RemoteAccess = mdb.register_object('/bmc/kepler/Debug/RemoteAccess', {
    {name = 'bmc.kepler.Debug.RemoteAccess.CAN', interface = CANTypes.interface},
    {name = 'bmc.kepler.Debug.RemoteAccess', interface = RemoteAccessTypes.interface},
    {name = 'bmc.kepler.Object.Properties', interface = PropertiesTypes.interface}
})

function RemoteAccess:ctor()
    self.path = '/bmc/kepler/Debug/RemoteAccess'
end

local model = require 'debug.class.model'

local bmc_datasync_service = class()

bmc_datasync_service.package = 'bmc_datasync'

function bmc_datasync_service:CreateRemoteAccess(prop_setting_cb)
    return object_manage.create_object('RemoteAccess', 'RemoteAccess_0', '/bmc/kepler/Debug/RemoteAccess',
        prop_setting_cb)
end

function bmc_datasync_service:ImplRemoteAccessCANSendTestBoardcast(cb)
    model.ImplRemoteAccessCANSendTestBoardcast(cb)
end

function bmc_datasync_service:ImplRemoteAccessCANPrintMetrics(cb)
    model.ImplRemoteAccessCANPrintMetrics(cb)
end

function bmc_datasync_service:ImplRemoteAccessRemoteAccessGetRemoteProperties(cb)
    model.ImplRemoteAccessRemoteAccessGetRemoteProperties(cb)
end

function bmc_datasync_service:ImplRemoteAccessRemoteAccessRemoteCall(cb)
    model.ImplRemoteAccessRemoteAccessRemoteCall(cb)
end

function bmc_datasync_service:get_bus()
    return self.bus
end

function bmc_datasync_service:ctor(bus)
    self.bus = bus
    self.signal_slots = {}
    self.name = self.name or bmc_datasync_service.package

    model.init(self.bus)
    bmc_datasync_service.bus = self.bus
end

function bmc_datasync_service:init()
end

return bmc_datasync_service
